import request from '@/utils/request'
import { urlPrefix } from './config'
import qs from 'qs'

export function exportTalentIndex(query) {
  const queryString = qs.stringify(query)
  const url = `${urlPrefix}/talent/export_index?${queryString}`
  return request({
    url: url,
    method: 'get'
  })
}

export function exportTalentSpecialList(status, query) {
  query.interview_status = status
  const queryString = qs.stringify(query)
  const url = `${urlPrefix}/talent/export_special?${queryString}`
  return request({
    url: url,
    method: 'get'
  })
}

export function exportWaitingList(query) {
  const queryString = qs.stringify(query)
  const url = `${urlPrefix}/interview/export_waiting?${queryString}`
  return request({
    url: url,
    method: 'get'
  })
}

export function exportFirstList(query) {
  const queryString = qs.stringify(query)
  const url = `${urlPrefix}/interview/export_first?${queryString}`
  return request({
    url: url,
    method: 'get'
  })
}

export function exportWaitingSecondList(query) {
  const queryString = qs.stringify(query)
  const url = `${urlPrefix}/interview/export_waiting_second?${queryString}`
  return request({
    url: url,
    method: 'get'
  })
}

export function exportSecondList(query) {
  const queryString = qs.stringify(query)
  const url = `${urlPrefix}/interview/export_second?${queryString}`
  return request({
    url: url,
    method: 'get'
  })
}

export function exportWaitingHrList(query) {
  const queryString = qs.stringify(query)
  const url = `${urlPrefix}/interview/export_waiting_hr?${queryString}`
  return request({
    url: url,
    method: 'get'
  })
}
